﻿<link href="@Url.Content("~/Scripts/uploadify/uploadify.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/uploadify/jquery.uploadify.js")" type="text/javascript"></script>
<div id="fileQueue">
</div>
<input type="file" name="uploadify" id="uploadify" />
<script type="text/javascript">
    $(function () {

        $("#uploadify").uploadify({
            'buttonText': '上传',
            'fileTypeDesc': '附件',
            'swf': '@Url.Content("~/Scripts/uploadify/uploadify.swf")',
            'uploader': '@Url.Action("Upload", "Share")',
            'auto': true,
            'debug': false,                         //自动上传
            'queueID': 'fileQueue',
            'uploadLimit': 5, //上传文件限制
            'fileSizeLimit': '80MB', //单个文件大小限制
            'multi': false,
            'method': 'POST'

        });

    });

    function Upload() {
        $('#uploadify').uploadify('upload', '*');
    }
    function Clearn() {
        $('#uploadify').uploadify('cancel');
    }

</script>
